Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
Objects, ROQL and the custom process
Answer ID 6705   |   Last Review Date 07/22/2019

Why is the $obj empty on a ROQL query used in a custom process?

Environment:

Process Designer, Custom Process Model (CPM) / Service Process Model (SPM)
November 2012 version and newer

Resolution:

ROQL queries and the object event handler:

$obj-> should return the values for any changed fields

$obj->prev should contain all the values that were fetched before the object was updated.

 

On a create there is no "prev" data. $obj should contain values for all fields that were provided to the create.